--[[/**
-- * 
 * 这个buff加在敌人身上
 * 触发时机,被伤害后
-- *
-- */]]

---@class BuffEffect636100 : BaseBuffEffect
BuffEffect636100 = ClientFight.CreateClass("BuffEffect636100", ClientFight.BaseBuffEffect)
local t = BuffEffect636100

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    local result = parameters[3];
    if (not result:isDamage()) then
        return IBuffEffect.FAIL;
    end
    if (not AttackUtils.isDamage(result.state)) then
        return IBuffEffect.FAIL;
    end
    local skill = parameters[3];
    local buffEffectValue = buff.buffBean.f_BuffEffectValue;
    if (not table.contains(buffEffectValue, skill.skillModelId)) then
        return IBuffEffect.FAIL;
    end
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()